package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.entity.Log;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LogMapper extends BaseMapper<Log> {

    @Delete("DELETE FROM log WHERE oper_id = #{operId}")
    void deleteByoperId(Integer operId);
    @Delete("DELETE FROM log")
    void cleanAll();
}
